﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Dycox.Validation.Design
{
    internal class ValidatorTypeConverter : TypeListConverter
    {
        //Type[] _types;

        public ValidatorTypeConverter()
            : base(ValidationManager.GetValidValidatorTypes(null))
        {

        }

        public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            //if (_types == null)
            //    _types = ValidationProvider.GetValidValidatorTypes(context);
            //return new StandardValuesCollection(_types);
            return base.GetStandardValues(context);
        }
    }
}
